package com.weixin.test;

import org.junit.Test;

public class test1 {
	@Test
	public void test(){
		String path = "D:\\tom cat\\Myeclipse 2014\\apache-tomcat-6.0.33\\apache-tomcat-6.0.33\\webapps\\weixin\\upload\\file\\background_upload05_0206227376820584E20.jpg";
		int num = path.lastIndexOf("background_upload05_0206227376820584E20.jpg");
		String changePath = path.substring(0,num);
		System.out.println(changePath);
	}
}
